#!/usr/bin/env node

const log = console.log,
      file = process.argv[2] || __filename,
      fs = require('fs');

//异步：使用readFile
fs.readFile(file,(err,data)=>{
  if(err){
    console.error(err.message);
    process.exit(1);
  }

  log(data.toString('utf8'))
});

